package main

import (
	"time"

	"gitee.com/yscsky/yu"
	"gitee.com/yscsky/yu/convert"
	"gitee.com/yscsky/yu/schedule"
)

type hand struct{}

func main() {
	schedule.NewSchedule(&hand{}).Start()
	time.Sleep(time.Minute)
}

func (*hand) Handle(ts int64) {
	yu.Logf("now: %s", convert.StrTime(ts, yu.TimeLayout1))
}
